/**
 * 
 */
package x10.log;

import java.util.logging.Filter;
import java.util.logging.LogRecord;

/** Filter class to only allow CustomLevel.EVENT and
 *  CustomLevel.RAW log messages to be written to the
 *  event.log file
 *  
 * @author Denny Sheirer
 * @date   2011
 */
public class EventFilter implements Filter{
    
    public EventFilter(){
    }

    public boolean isLoggable(LogRecord record) {
	boolean result = false;
	if(record.getLevel() == CustomLevel.EVENT || record.getLevel() == CustomLevel.RAW){
	    result = true;
	}
	return result;
    }
}
